from collections import Counter

def count_len(strings):
    lengths = [len(string) for string in strings]
    return Counter(lengths)

strings = ["this", "real", "hard", "trh", "hea", "iar", "sld"]
count_len_dict = count_len(strings)
print(count_len_dict)